numOfStudents = -1
max = -1
count = 0
while numOfStudents != 0:
    numOfStudents = eval(input("请输入数字，以0为结束：\n"))
    if numOfStudents>max:
        max  = numOfStudents
        count = 1
    if numOfStudents==max:
        count += 1

print("最大数为： " + str(max) + "'，他出现的次数为：" + str(count))